-- GENERATED SPELL FOR [Onslaught Mason] --


function spell0_27333(pUnit, Event) --@Sling Mortar,n/a--
pUnit:FullCastSpellOnTarget(50701,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27333', 7000, 1)
end

function spell1_27333(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(50370,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27333', 15333, 1)
end

function Sorts_27333(pUnit, Event)
local choix_sorts_27333 = math.random(0, 1)
if choix_sorts_27333 == 0 then
pUnit:RegisterEvent('spell0_27333', 1, 1)
end
if choix_sorts_27333 == 1 then
pUnit:RegisterEvent('spell1_27333', 1, 1)
end
end

function mob27333_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27333', math.random(1500, 3000), 1)
end

function mob27333_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27333_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27333_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27333, 1, 'mob27333_Action')
RegisterUnitEvent(27333, 2, 'mob27333_Leave')
RegisterUnitEvent(27333, 3, 'mob27333_Kill')
RegisterUnitEvent(27333, 4, 'mob27333_Die')
